﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FastMvc.Exceptions
{
    /// <summary>
    /// 权限验证错误
    /// * 是否登录验证
    /// * 功能权限是否开启验证
    /// </summary>
    public class UnAuthException : Exception
    {
        public bool NeedLogin { get; set; }
        public UnAuthException(string message, bool needLogin = false)
            :base(message)
        {
            this.NeedLogin = needLogin;
        }
    }
}
